#include "SList.h"
//#include <stdlib.h>

void TestSList1()
{
	SLTNode* plist = NULL;
	
	SLPushFront(&plist, 1);
	SLPushBack(&plist, 2);
	SLPushBack(&plist, 3);
	SLPushBack(&plist, 4);
	//SLPopFront(&plist);
	//SLPopBack(&plist);
	SLTNode* pos = SLFind(plist, 1);
	if (pos)
	{
		SLInsertBefore(&plist, pos, 28);
	}
	pos = SLFind(plist, 4);
	if (pos)
	{
		SLInsertAfter(plist, pos, 30);
	}
	SLTPrint(plist);

	SLErase(&plist, plist);
	SLTPrint(plist);

	/*SLTNode* ret = SLFind(plist,3);
	printf("%p", ret);*/
	//SLPopFront(&plist);


	


	/*SLPushBack(plist, 2);
	SLTPrint(plist);*/
}

int main()
{
	TestSList1();
	return 0;
}
